import request from '@/utils/request'

// 查询玩耍记录表列表
export function listUserPlaytimeRecord(query) {
  return request({
    url: '/lakk/UserPlaytimeRecord/list1',
    method: 'get',
    params: query
  })
}

// 查询玩耍记录表详细
export function getUserPlaytimeRecord(userid) {
  return request({
    url: '/lakk/UserPlaytimeRecord/' + userid,
    method: 'get'
  })
}

// 新增玩耍记录表
export function addUserPlaytimeRecord(data) {
  return request({
    url: '/lakk/UserPlaytimeRecord',
    method: 'post',
    data: data
  })
}

// 修改玩耍记录表
export function updateUserPlaytimeRecord(data) {
  return request({
    url: '/lakk/UserPlaytimeRecord',
    method: 'put',
    data: data
  })
}

// 删除玩耍记录表
export function delUserPlaytimeRecord(userid) {
  return request({
    url: '/lakk/UserPlaytimeRecord/' + userid,
    method: 'delete'
  })
}
